package 类和对象课堂练习.封装;

public class Zuoye032923 {
    String dizhi;
    String dianhua;

    public Zuoye032923(String dizhi, String dianhua) {
        this.dizhi = dizhi;
        this.dianhua = dianhua;
    }
    public void print(Zuoye03292 p){
        System.out.println("车辆检测中心在"+dizhi+",电话号码手机："+dianhua);
        System.out.println("正在给"+p.getName()+"车检测车辆的启动，加速，刹车是否正常");
        p.print();
    }
}
